$(function () {
    // 搜索
    $('.userlist .search .button').click(function () {
        var username = $('.userlist .search .text').val();
        $('.userlist .search form').attr('action', 'userlist?username=' + username);
        $('.userlist .search form').submit();
    });
});